<div class="page-body">
    <div class="row">
        <div class="widget">
            <div class="widget-header
            <switch name="T_type">
            <case value="1">bg-magenta</case>
            <case value="2">bg-palegreen</case>
            <case value="3">bg-lightred</case>
            <case value="4">bg-blue</case>
            <case value="5">bg-blueberry</case>
            <case value="6">bg-gold</case>
            <default />bg-magenta
            </switch>
                                ">
            <span class="widget-caption">{$T_title|default=CONTROLLER_NAME}</span>
                                <!--Widget Buttons-->
        </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <div class="form-horizontal">

                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"></label>
                            <div class="col-sm-3">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"></label>
                            <div class="col-sm-4">
                                <p>订单详情</p>
                                <!--printstart1-->
                                <table class="table table-hover" id="printarea">
                                    <thead class="bordered-blueberry">
                                        <tr>
                                            <th>
                                                名称
                                            </th>
                                            <th>
                                                单价
                                            </th>
                                            <th>
                                                数量
                                            </th>
                                            <th>
                                                金额
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="d.list" id="v">
                                        <tr>
                                            <td>{$v.sm}</td>
                                            <td>{:number_format($v['dj'],2)}</td>
                                            <td>{$v.quantity}</td>
                                            <td>{:number_format($v['quantity'] * $v['dj'],2)}</td>
                                        </tr>
                                    </volist>
                                    <tr>
                                        <td colspan="3">总计</td>
                                        <td colspan="1">{:number_format($d['money_b'],2)}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">折扣</td>
                                        <td colspan="1">{:number_format($d['discount_buy'],2)}</td>
                                    </tr>
                                    <tr>
                                        <td  colspan="3">结算金额</td>
                                        <td  colspan="1">{:number_format($d['money'],2)}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">实收金额</td>
                                        <td colspan="1">{:number_format($d['money_real'],2)}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">找零</td>
                                        <td colspan="1">{:number_format($d['money_zero'],2)}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">订单号：{$d.order_id}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">支付流水号：{$d.pay_id}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">创建日期：{$d.create_time}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">会员卡号：{$d.card.card_id|default=无}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">目前积分：{$d.score|default=0}积分</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!--printend1-->
                                <button class="btn btn-darkorange btn-block" onclick="printOrder(1)">重新打印</button>
                                <a class="btn btn-palegreen btn-block" href="{:U('index')}">确认</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>